﻿<u:UObject x:Class="UTable.Tests.UDialogTest"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core"
    xmlns:uc="clr-namespace:UTable.Objects.Controls;assembly=UTable.Objects"
    Height="400" Width="500">
    <u:UGrid>
        <u:UGrid.ColumnDefinitions>
            <ColumnDefinition Width="150" />
            <ColumnDefinition Width="394*" />
        </u:UGrid.ColumnDefinitions>
        <StackPanel Margin="5, 50, 5, 10">
            <u:UButton Height="50" Foreground="White" FontSize="16" Pressed="UButton_Pressed">Custom Dialog</u:UButton>
            <u:UButton Height="50" Foreground="White" FontSize="16" x:Name="WarnButton" Pressed="WarnButton_Pressed" >Warm Dialog</u:UButton>
            <u:UButton Height="50" Foreground="White" FontSize="16" x:Name="ConfirmButton" Pressed="ConfirmButton_Pressed" >Confirm Dialog</u:UButton>
            <u:UCheckBox Height="50" Foreground="White" FontSize="16" x:Name="HoldFocus" Checked="HoldFocus_Checked" Unchecked="HoldFocus_Unchecked" IsChecked="True">Hold Focus</u:UCheckBox>
        </StackPanel>
        <u:UDialog Width="200" Height="200" x:Name="CustomDialog" Background="SkyBlue" Grid.Column="1">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="120*" />
                    <RowDefinition Height="80" />
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Text="This is a custom dialog" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                <u:UButton Grid.Row="1" Margin="5" Pressed="UButton_Pressed_1">Close Dialog</u:UButton>
            </Grid>
        </u:UDialog>
    </u:UGrid>
</u:UObject>
